<?php 
if (!empty($this->flash_messages))
{
    foreach ($this->flash_messages as $flash_message)
    {
        echo '<div class="message">'.$flash_message.'</div>';
    }
}
?>

<div class="user-profile-item">
    <h1><?php echo htmlspecialchars($this->username) ?></h1>
    <?php if (!empty($this->avatar)) : ?>
          <?php echo $this->image('users',$this->avatar,'',200,200,true); ?>
    <?php endif; ?>
    <p><?php echo nl2br(strip_tags($this->description)) ?></p>
</div>